# test.py
from alg import generate_parentheses
from gen import generate_test_data

def test_generate_parentheses(n):
    """测试生成的括号组合"""
    result = generate_parentheses(n)
    
    print(f"Test Result for n={n}:")
    print(sorted(result))  # 输出生成的括号组合
    print()  # 空行分隔

def main():
    # 可以根据需要在这里列出不同的n值进行测试
    test_cases = [0, 1, 2, 3, 4]
    
    for n in test_cases:
        test_generate_parentheses(n)

if __name__ == "__main__":
    main()